#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
	int a;

	#pragma option(mbcs)
		
	a=MessageBox(NULL,"确认退出当前用户","提示",MB_YESNO|MB_SYSTEMMODAL);
	
	if(a==IDYES)
	{
		#pragma code("useadmin.dll")
		#include "PWRT_api.h"
		#pragma code()
		if(PWRTLogout())

		MessageBox(NULL,"用户已退出！","提示",MB_ICONEXCLAMATION|MB_SYSTEMMODAL);
	}	
}